package com.njym.java.security.admin.biz;

import com.github.pagehelper.PageHelper;
import com.njym.java.security.admin.entity.User;
import com.njym.java.security.admin.mapper.UserMapper;
import com.njym.java.security.admin.vo.GroupUsers;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.njym.java.security.admin.entity.CludCode;
import com.njym.java.security.admin.mapper.CludCodeMapper;

import javax.annotation.Resource;
import java.util.List;

/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-11-15 10:20:39
 */
@Service
public class CludCodeBiz extends BaseBiz<CludCodeMapper,CludCode> {
    @Resource
    private UserMapper userMapper;
    @Resource
    private CludCodeMapper cludCodeMapper;

    public List<User> queryClub() {
        return userMapper.queryClub();
    }

    public void insertUUID(CludCode cludCode){
        cludCodeMapper.insertUUID(cludCode);
    }

    public List<CludCode> querySelective(String code, Integer clubId, String useFlag,
        Integer useId, Integer page, Integer limit){
        PageHelper.startPage(page, limit);
        return cludCodeMapper.querySelective(code, clubId, useFlag, useId);
    }
    public int countSelective(String code, Integer clubId, String useFlag,
        Integer useId){
        return cludCodeMapper.countSelective(code, clubId, useFlag, useId);
    }
}